data = [
    [1, 2, 3, 4, 5, 6, 7, 8, 9],
    ["A", "B", "C", "D", "E"],
    ["Hello", "World", "Python", "Hogwarts"]
]


def loop_info():

    for item in data:
        for el in item:
            print(el)
def loop_demo():
    l1=len(data)
    i=0
    while i<l1:
        item=data[i]
        l2=len(item)
        j=0
        while j<l2:
            el=item[j]
            print(el)
            j+=1
        i+=1

# 九九乘法表
def loop_demo2():
    for i in range(1,10):
        for j in range(1,i+1):
         print(f"{j}*{i}={i*j:<2}",end=" ")
        print()

if __name__ == '__main__':
   # loop_info()
   #loop_demo()
   loop_demo2()